﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:XAudio2Controls" xmlns:Properties="clr-namespace:XAudio2Controls.Properties">

    <!--Region: XA2TabPanelBase-->
    <Style TargetType="{x:Type local:XA2TabPanelBase}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:XA2TabPanelBase}">
                    <Grid x:Name="LayoutRoot">
                        <TabControl x:Name="PART_TabItemParent">
                            <!---->
                            <TabItem Header="Patch" x:Name="PART_TabPatch" VerticalAlignment="Stretch">
                                <ScrollViewer>
                                <Grid>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition/>
                                        </Grid.RowDefinitions>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition/>
                                        <ColumnDefinition/>
                                        </Grid.ColumnDefinitions>
                                    <Border BorderThickness=".5" Margin="10" Grid.Row="0" Grid.ColumnSpan="2" VerticalAlignment="Top">
                                        
                                        <StackPanel>
                                            <Label x:Name="PART_PatchSourceLabel" Content="Select patch source" HorizontalAlignment="Left"/>
                                            <TextBox x:Name="PART_NewDirectory" IsHitTestVisible="False" Text="{Binding ElementName=XA2TabPanelPatch, Path=FileDirectory}">
                                            	<TextBox.DataContext>
                                            		<Properties:Resources/>
                                            	</TextBox.DataContext>
                                            </TextBox>
                                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch" Margin="10">
                                                <Button x:Name="PART_BtnDirectoryBrowse" Content="Browse" HorizontalAlignment="Right" VerticalAlignment="Stretch"/>                                                 
                                            </StackPanel>
                                    <ComboBox  x:Name="PART_ComboBoxPatches"/>
                                            </StackPanel>
                                           
                                        </Border>
                                    <Grid VerticalAlignment="Stretch" Grid.Row="1" Grid.Column="0">   
                                        <ScrollViewer HorizontalScrollBarVisibility="Disabled" Margin="10">
                                        <StackPanel x:Name="PART_PatchInfoPanel" > 
                                            <Label VerticalAlignment="Top" Content="File Info" FontWeight="ExtraBold"/>
                                            <Label x:Name="PART_SizeLabel"/>
                                            <Label x:Name="PART_SampleRateLabel"/>
                                            <Label x:Name="PART_AvgBytesPersSecLabel"/>
                                            <Label x:Name="PART_BitsPerSampleLabel"/>
                                            <Label x:Name="PART_BlockAlignLabel"/>
                                            <Label x:Name="PART_ChannelsLabel"/>
                                            <Label x:Name="PART_WaveFormatEncodingLabel"/>
                                            <Label x:Name="PART_ExtraSizeLabel"/>                                            
                                        </StackPanel>  
                                            </ScrollViewer>
                                        </Grid>
                                    <Border HorizontalAlignment="Left" Grid.Row="1" Grid.Column="1" BorderThickness=".5">
                                        <StackPanel>
                                            <Label Content="Load from:"/>
                                        <RadioButton x:Name="PART_RadioBtnFromFile" Content="Load from directory"/>
                                        <RadioButton x:Name="PART_RadioBtnSamples" Content="Included Samples"/>
                                            
                                            </StackPanel>
                                    </Border>
                                </Grid>
                                    </ScrollViewer>
                            </TabItem>
                            <!---->
                            <TabItem 
                                Header="Shape" 
                                x:Name="PART_TabShape" 
                                VerticalAlignment="Stretch">
                                <Grid x:Name="PART_TabShapePanel"/>
                            </TabItem>
                            <!---->
                            <TabItem
                                Header="Pattern" 
                                x:Name="PART_TabPattern"
                                >
                                <ScrollViewer 
                                    >
                                    <StackPanel
                                        x:Name="PART_TabPatternPanel"
                                        />
                                </ScrollViewer>
                            </TabItem>
                            <!---->
                            <TabItem                                 
                                Header="Submixer"
                                x:Name="PART_TabSubmixer"
                                >
                                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled">
                                    <StackPanel   
                                    x:Name="PART_TabSubmixerPanel"
                                    Orientation="Horizontal"
                                    />
                                </ScrollViewer>
                            </TabItem>
                            <!---->
                            <TabItem
                                Header="Effects"
                                x:Name="PART_TabEffects">
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                        <ColumnDefinition Width="80"/>
                                        </Grid.ColumnDefinitions>
                                    <Border Grid.Column="0" BorderThickness=".5" BorderBrush="{DynamicResource ControlBackgroundBrush}">
                                    <ScrollViewer HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Disabled">
                                <StackPanel Orientation="Horizontal" x:Name="PART_TabEffectsPanel"/>                                   
                                        </ScrollViewer>
                                        </Border>
                                    <StackPanel                                        
                                        Grid.Column="1"
                                        Orientation="Vertical"
                                        VerticalAlignment="Stretch"
                                        >
                                        <Button
                                            x:Name="PART_ButtonAddFx"
                                            Content="AddFX"/>
                                        <ComboBox
                                            x:Name="PART_ComboBoxSelectFx"
                                            />
                                    </StackPanel>
                                    </Grid>
                                </TabItem>
                        </TabControl> 
                        </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--EndRegion: XA2TabPanelBase-->

</ResourceDictionary>